<?php

namespace App\Http\Controllers\AppApi\Company;

use App\Http\Controllers\AppApi\BaseController;
use App\Repositories\Company\CompanyRepository;

class IndexController extends BaseController
{
    private $companyRepository;

    public function __construct(
        CompanyRepository $companyRepository
    )
    {
        parent::__construct();
        $this->companyRepository = $companyRepository;
    }

    public function lists()
    {
        $lists = $this->companyRepository->getCompanyCagetory(1);
        return $this->output(['list'=>$lists]);
    }
}